package birs.controller.expanditure;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import birs.controller.expanditure.task.XPD005Task;

/**
 * Servlet implementation class XPD005Controller
 */
@WebServlet("/XPD005Controller")
public class XPD005Controller extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public XPD005Controller() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		XPD005Task xpd005Task = new XPD005Task();
		if(request.getParameter("parameter").equals("radioBox")){
			xpd005Task.getRadioBox(request, response);
		}else{
			xpd005Task.getExpenditureSalary(request, response, request.getParameter("periodYear"));
		}
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
